Chapter 2 - A Quick & Easy Sample Program
This chapter gives a brief introduction to programming with QuickDraw GX. In this chapter, there is all the QuickDraw GX code you need to create, modify, draw, and print a shape.This chapter is not meant as a comprehensive introduction, but rather as
a streamlined view of programming with QuickDraw GX. The concepts presented in this chapter are discussed very briefly here. You can find more detailed information in Chapter 3, "Using QuickDraw GX Objects."Specifically, this chapter shows you how to use QuickDraw GX to
With the rich programming interface provided by QuickDraw GX, each of these tasks could be implemented in a number of different ways. This section describes one simple implementation for each task.
- create a curve shape
- set the geometry of the curve
- set the pen width of the curve
- set the color of the curve
- rotate the curve
- draw the curve to a Macintosh window
- print the curve to the user's default printer
- examine the curve shape using GraphicsBug
Chapter Contents
- Creating and Drawing a Curve
- Creating a Curve Shape
- Setting the Geometry of the Curve
- Setting the Pen Width of the Curve
- Setting the Color of the Curve
- Rotating the Curve
- Drawing the Curve to a Macintosh Window
- Printing the Curve to the User's Default Printer
- A Quick Review of the Sample Program
- Examining the Curve Shape With GraphicsBug
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help